home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / pygtk / 2.0 / defs / pynotify.defs < prev    next >
Encoding:
Text File  |  2009-02-22  |  5.3 KB  |  257 lines

  1. ;; -*- scheme -*-
  2. ; object definitions ...
  3. (define-object Notification
  4.   (in-module "Notify")
  5.   (parent "GObject")
  6.   (c-name "NotifyNotification")
  7.   (gtype-id "NOTIFY_TYPE_NOTIFICATION")
  8. )
  9.  
  10. ;; Enumerations and flags ...
  11.  
  12. (define-enum Urgency
  13.   (in-module "Notify")
  14.   (c-name "NotifyUrgency")
  15.   (gtype-id "NOTIFY_TYPE_URGENCY")
  16.   (values
  17.     '("low" "NOTIFY_URGENCY_LOW")
  18.     '("normal" "NOTIFY_URGENCY_NORMAL")
  19.     '("critical" "NOTIFY_URGENCY_CRITICAL")
  20.   )
  21. )
  22.  
  23.  
  24. ;; From /usr/include/libnotify/notification.h
  25.  
  26. (define-function notify_notification_get_type
  27.   (c-name "notify_notification_get_type")
  28.   (return-type "GType")
  29.   (parameters
  30.   )
  31. )
  32.  
  33. (define-function notify_notification_new
  34.   (c-name "notify_notification_new")
  35.   (is-constructor-of "NotifyNotification")
  36.   (return-type "NotifyNotification*")
  37.   (parameters
  38.     '("const-gchar*" "summary")
  39.     '("const-gchar*" "message" (null-ok) (default "NULL"))
  40.     '("const-gchar*" "icon" (null-ok) (default "NULL"))
  41.     '("GtkWidget*" "attach" (null-ok) (default "NULL"))
  42.   )
  43. )
  44.  
  45. (define-method update
  46.   (of-object "NotifyNotification")
  47.   (c-name "notify_notification_update")
  48.   (return-type "gboolean")
  49.   (parameters
  50.     '("const-gchar*" "summary")
  51.     '("const-gchar*" "message" (null-ok) (default "NULL"))
  52.     '("const-gchar*" "icon" (null-ok) (default "NULL"))
  53.   )
  54. )
  55.  
  56. (define-method attach_to_widget
  57.   (of-object "NotifyNotification")
  58.   (c-name "notify_notification_attach_to_widget")
  59.   (return-type "none")
  60.   (parameters
  61.     '("GtkWidget*" "attach")
  62.   )
  63. )
  64.  
  65. (define-method attach_to_status_icon
  66.   (of-object "NotifyNotification")
  67.   (c-name "notify_notification_attach_to_status_icon")
  68.   (return-type "none")
  69.   (parameters
  70.     '("GtkStatusIcon*" "attach")
  71.   )
  72. )
  73.  
  74. (define-method show
  75.   (of-object "NotifyNotification")
  76.   (c-name "notify_notification_show")
  77.   (return-type "gboolean")
  78.   (parameters
  79.     '("GError**" "error")
  80.   )
  81. )
  82.  
  83. (define-method set_timeout
  84.   (of-object "NotifyNotification")
  85.   (c-name "notify_notification_set_timeout")
  86.   (return-type "none")
  87.   (parameters
  88.     '("gint" "timeout")
  89.   )
  90. )
  91.  
  92. (define-method set_category
  93.   (of-object "NotifyNotification")
  94.   (c-name "notify_notification_set_category")
  95.   (return-type "none")
  96.   (parameters
  97.     '("const-char*" "category")
  98.   )
  99. )
  100.  
  101. (define-method set_urgency
  102.   (of-object "NotifyNotification")
  103.   (c-name "notify_notification_set_urgency")
  104.   (return-type "none")
  105.   (parameters
  106.     '("NotifyUrgency" "l")
  107.   )
  108. )
  109.  
  110. (define-method set_icon_from_pixbuf
  111.   (of-object "NotifyNotification")
  112.   (c-name "notify_notification_set_icon_from_pixbuf")
  113.   (return-type "none")
  114.   (parameters
  115.     '("GdkPixbuf*" "icon")
  116.   )
  117. )
  118.  
  119. (define-method set_hint_int32
  120.   (of-object "NotifyNotification")
  121.   (c-name "notify_notification_set_hint_int32")
  122.   (return-type "none")
  123.   (parameters
  124.     '("const-gchar*" "key")
  125.     '("gint" "value")
  126.   )
  127. )
  128.  
  129. (define-method set_hint_double
  130.   (of-object "NotifyNotification")
  131.   (c-name "notify_notification_set_hint_double")
  132.   (return-type "none")
  133.   (parameters
  134.     '("const-gchar*" "key")
  135.     '("gdouble" "value")
  136.   )
  137. )
  138.  
  139. (define-method set_hint_string
  140.   (of-object "NotifyNotification")
  141.   (c-name "notify_notification_set_hint_string")
  142.   (return-type "none")
  143.   (parameters
  144.     '("const-gchar*" "key")
  145.     '("const-gchar*" "value")
  146.   )
  147. )
  148.  
  149. (define-method set_hint_byte
  150.   (of-object "NotifyNotification")
  151.   (c-name "notify_notification_set_hint_byte")
  152.   (return-type "none")
  153.   (parameters
  154.     '("const-gchar*" "key")
  155.     '("guchar" "value")
  156.   )
  157. )
  158.  
  159. (define-method set_hint_byte_array
  160.   (of-object "NotifyNotification")
  161.   (c-name "notify_notification_set_hint_byte_array")
  162.   (return-type "none")
  163.   (parameters
  164.     '("const-gchar*" "key")
  165.     '("const-guchar*" "value")
  166.     '("gsize" "len")
  167.   )
  168. )
  169.  
  170. (define-method clear_hints
  171.   (of-object "NotifyNotification")
  172.   (c-name "notify_notification_clear_hints")
  173.   (return-type "none")
  174. )
  175.  
  176. (define-method add_action
  177.   (of-object "NotifyNotification")
  178.   (c-name "notify_notification_add_action")
  179.   (return-type "none")
  180.   (parameters
  181.     '("const-char*" "action")
  182.     '("const-char*" "label")
  183.     '("NotifyActionCallback" "callback")
  184.     '("gpointer" "user_data")
  185.     '("GFreeFunc" "free_func")
  186.   )
  187. )
  188.  
  189. (define-method clear_actions
  190.   (of-object "NotifyNotification")
  191.   (c-name "notify_notification_clear_actions")
  192.   (return-type "none")
  193. )
  194.  
  195. (define-method close
  196.   (of-object "NotifyNotification")
  197.   (c-name "notify_notification_close")
  198.   (return-type "gboolean")
  199.   (parameters
  200.     '("GError**" "error")
  201.   )
  202. )
  203.  
  204.  
  205.  
  206. ;; From /usr/include/libnotify/notify-enum-types.h
  207.  
  208. (define-function notify_urgency_get_type
  209.   (c-name "notify_urgency_get_type")
  210.   (return-type "GType")
  211. )
  212.  
  213.  
  214.  
  215. ;; From /usr/include/libnotify/notify.h
  216.  
  217. (define-function init
  218.   (c-name "notify_init")
  219.   (return-type "gboolean")
  220.   (parameters
  221.     '("const-char*" "app_name")
  222.   )
  223. )
  224.  
  225. (define-function uninit
  226.   (c-name "notify_uninit")
  227.   (return-type "none")
  228. )
  229.  
  230. (define-function is_initted
  231.   (c-name "notify_is_initted")
  232.   (return-type "gboolean")
  233. )
  234.  
  235. (define-function get_app_name
  236.   (c-name "notify_get_app_name")
  237.   (return-type "const-gchar*")
  238. )
  239.  
  240. (define-function get_server_caps
  241.   (c-name "notify_get_server_caps")
  242.   (return-type "GList*")
  243. )
  244.  
  245. (define-function get_server_info
  246.   (c-name "notify_get_server_info")
  247.   (return-type "gboolean")
  248.   (parameters
  249.     '("char**" "ret_name")
  250.     '("char**" "ret_vendor")
  251.     '("char**" "ret_version")
  252.     '("char**" "ret_spec_version")
  253.   )
  254. )
  255.  
  256.  
  257.